package com.teach.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author J.L.Zhou
 * @since 2022-10-22 20:39
 */
@TableName("sys_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 角色code
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 用户手机号码	            唯一
     */
    @TableField("user_tel")
    private String userTel;

    /**
     * 用户密码
     */
    @TableField("user_pwd")
    @JsonIgnore
    private String userPwd;

    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户头像
     */
    @TableField("user_img")
    private String userImg;

    /**
     * 用户锁定状态	            默认:false
     */
    @TableField("user_locked")
    private Boolean userLocked;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Boolean getUserLocked() {
        return userLocked;
    }

    public void setUserLocked(Boolean userLocked) {
        this.userLocked = userLocked;
    }

    @Override
    public String toString() {
        return "User{" +
        "userId=" + userId +
        ", roleId=" + roleId +
        ", userTel=" + userTel +
        ", userPwd=" + userPwd +
        ", userName=" + userName +
        ", userImg=" + userImg +
        ", userLocked=" + userLocked +
        "}";
    }
}
